﻿using System.ComponentModel.DataAnnotations;

namespace AnQinFrameWorkAPI.Entity.Blog.DTO.BlogMenu;

/// <summary>
///     博客菜单新增模型
/// </summary>
public class BlogMenuAddDTO
{
    /// <summary>
    ///     博客菜单编码
    /// </summary>
    [Required(ErrorMessage = "博客菜单编码不可为空")]
    public string Code { get; set; }

    /// <summary>
    ///     博客菜单名称
    /// </summary>
    [Required(ErrorMessage = "博客菜单名称不可为空")]
    public string Name { get; set; }

    /// <summary>
    ///     博客菜单排序
    /// </summary>
    public int? Order { get; set; }

    /// <summary>
    ///     博客菜单图片
    /// </summary>
    public string? Image { get; set; }
}